package com.gdk.service.impl;

import java.util.Comparator;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Optional;
import java.util.function.Function;
import java.util.stream.Collectors;
import java.util.stream.IntStream;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.gdk.dao.ArticleDao;
import com.gdk.dao.CategoryDao;
import com.gdk.dao.GoodsDao;
import com.gdk.dao.LoginDao;
import com.gdk.dao.NavigationDao;
import com.gdk.dao.OrderDao;
import com.gdk.dao.UserDao;
import com.gdk.service.ArticleService;
import com.gdk.service.CategoryService;
import com.gdk.service.GoodsService;
import com.gdk.service.LoginService;
import com.gdk.service.NavigationService;
import com.gdk.service.OrderService;
import com.gdk.service.UserService;
import com.gdk.utils.Md5Utils;
import com.gdk.utils.XVDateUtils;
import com.google.gson.Gson;


/**
 * 订单业务处理
 * */
@Service("OrderService")
public class OrderServiceImpl implements OrderService {
	@Autowired
    private OrderDao orderDao;

	 @Override
	public List<Map<String, Object>> selectAllOrder(Map<String,Object> map) {
		return orderDao.selectAllOrder(map);
	}
	
	@Override
	public Map<String, Object> selectOrderDetails(Map<String, Object> map) {
		Map<String,Object> orderDetails = orderDao.selectOrderDetails(map);
	
		return orderDetails;
	}
	@Override
	public int updateOrderDetails(Map<String, Object> map) {
		return orderDao.updateOrderDetails(map);
	}
	@Override
	public int bindTree(Map<String, Object> map) {
		return orderDao.bindTree(map);
	}
	@Override
	public List<Map<String, Object>> selectAllOrderComment(Map<String, Object> map) {
		return orderDao.selectAllOrderComment(map);
	}
	@Override
	public Map<String, Object> selectOrderCommentDetails(Map<String, Object> map) {
		return orderDao.selectOrderCommentDetails(map);
	}
	@Override
	public int updateOrderCommentDetails(Map<String, Object> map) {
		return orderDao.updateOrderCommentDetails(map);
	}
	@Override
	public List<Map<String, Object>> selectAllBindTicketByOrder(Map<String, Object> map) {
		return orderDao.selectAllBindTicketByOrder(map);
	}
	
	@Override
	public List<Map<String, Object>> selectShopMoneyLog(Map<String, Object> map) {
		return orderDao.selectShopMoneyLog(map);
	}
	
	@Override
	public int addShopMoney(Map<String, Object> map) {
		return orderDao.addShopMoney(map);
	}
	@Override
	public int delHXCode(Map<String, Object> map) {
		return orderDao.delHXCode(map);
	}
	@Override
	public List<Map<String, Object>> selectAllHXOrderByHXStatus(Map<String, Object> map) {
		return orderDao.selectAllHXOrderByHXStatus(map);
	}
	
	@Override
	public List<Map<String, Object>> selectAllNowShopMoney() {
		return orderDao.selectAllNowShopMoney();
	}
	
	@Override
	public List<Map<String, Object>> selectAllOrderGoods() {
		return orderDao.selectAllOrderGoods();
	}
	@Override
	public int updateOrderGoods(Map<String, Object> map) {
		return orderDao.updateOrderGoods(map);
	}
}
